//###############
// FILE : SelectFilterFileAction.java
// WRITER : Lior Zimmerman liorz06 066462300
// WRITER : Ohad Dan ohad_dan 036767960
// EXERCISE : oop ex3 2008
// DESCRIPTION:
//  Choose the filter form the open dialog.
//###############

package oop.ex3.fileSearchController;

import oop.ex3.fileSearchView.GUIView;

/**
 * Choose the filter form the open dialog.
 */
public class SelectFilterFileAction extends OpenDialogAction {

    /**
     * Initialize a new filter file selector.
     * @param gui Main frame.
     * @param constraints file\directory only.
     */
    public SelectFilterFileAction(GUIView gui, int constraints) {
        super(gui, constraints);
    }
    /**
     * Sets the text at the search tab in the filter file text.
     * @param text Text to be set.
     */
    public void setData(String text) {
        _gui.getSearchView().txtFilterFileSetText(text);
    }

}
